{{#extends @html/community/base.html}}

{{:community_body}}

	{{@html/layout/layout_3_1.html column_one=@:column_one column_two=@:column_two}}

	{{:column_one}}
		{{!connect 'theme/page/common.css'}}
		{{!connect 'theme/view/finder.css'}}

		<h3 class="title-">{{@:title}}</h3>

		{{?files_list}}
		<div class="page pg-finder pg-common">
			<table class="list-">
				<tr class="head-">
					<th class="ico-"><img src="{{!static type='images' 'icons/text-column.gif'}}" alt="[C]" title="Сотировать по типу" /></th>

					{{:order_ctl}}
						<th class="{{class}}-"><a href="?sort={{sort}}" title="Сортировать по {{title}}" {{?!sort}}class="current-"{{/?}}>{{text}}</a> <!--img src="../images/icons/arrow_up.gif" class="arrow-" /--></th>
					{{/:order_ctl}}

					{{?_sort=='name'}} {{@:order_ctl title='названию' text="Название" class="header"}} 
					{{?:}} {{@:order_ctl title='названию' text="Название" sort='name' class="header"}} {{/?}}

					<!--{{?_sort=='size'}} {{@:order_ctl title='размеру' text="Размер"}} 
					{{?:}} {{@:order_ctl title='По размеру' sort='size'}} {{/?}}-->

					{{?_sort=='date'}} {{@:order_ctl title='дате' text="Дата" class="date"}} 
					{{?:}} {{@:order_ctl title='дате' text="Дата" sort='date' class="date"}} {{/?}}

					{{?_sort=='poster'}} {{@:order_ctl title='автору' text="Автор" class="meta"}} 
					{{?:}} {{@:order_ctl title='автору' text="Автор" sort='date' class="meta"}} {{/?}}

				</tr>

				{{@:files_list}}{{:files_list}}
				{{!for files_list do=@:file_item}}
				{{:file_item}}
				<tr class="item-">
					<td class="ico-"><img src="{{!static type='images' 'icons/file.png'}}" alt="[Ф]" title="Файл" class="{{*ext}}- doctype-image-link" /></td>
					<td class="header-">
						<!-- {{*type}} - тип {{*user.avatar}} - идшник аватара, {{*item_url}} - ссылка -->
						<a href="{{*item_url|safe}}" class="name- doctype-image-link">{{*fname}}</a> <span class="link-"><a href="{{/}}filestorage/{{*oid}}">cкачать</a> {{*size|formatfilesize}}</span></td>
					<td class="date-">{{*date | date "%d.%m.%y %H:%i"}}</td>
					<td class="meta-"><a href="{{/}}{{community.url}}/members/{{*useroid}}" title="Профиль пользователя"><img src="../tmp/avatars/1-22x22.gif" alt="" class="avatar-" /></a><a href="{{/}}{{community.url}}/members/{{*useroid}}" title="Профиль пользователя" class="user- service-user">{{*user.fullname}}</a></td>
				</tr>
				{{/:file_item}}
				{{/:files_list}}
			</table>
			{{@html/view/pager.html}}
		</div>
		{{?:}}
		<div class="typography">
			<p>Похоже сюда никто ничего пока не написал. Надо исправить это упущение.</p>
		</div>
		{{/?}}
		
	{{/:column_one}}

	{{:column_two}}

		{{createbtn}}
		{{tags}}

	{{/:column_two}}

{{/:community_body}}
